package com.dmall.modules.admin.entity;

import javax.persistence.Table;
import java.util.Date;

/**
 * 日志
 * @author Chen 2017/12/7
 */
@Table(name = "admin_log")
public class AdminLog extends BaseEntity{
    private String userName;	//用户名
    private String operation;	//用户操作
    private String method;      //请求方法
    private String params;      //请求参数
    private Long time;          //执行时长（毫秒）
    private String ip;          //ip地址
    private Date createDate;    //创建时间

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
